import request from '@/utils/request'

const api_name = `/api/hosp/hospital`
export default {
  //查询医院列表
  getPageList(page, limit, serchObj) {
    return request({
      url: `${api_name}/findHospList/${page}/${limit}`,
      method: 'get',
      params: serchObj
    })
  },
  //根据医院名称模糊查询
  findByHosname(hosname) {
    return request({
      url: `${api_name}/findByHosname/${hosname}`,
      method: 'get',
    })
  },
  show(hoscode) {
    return request({
      url: `${api_name}/${hoscode}`,
      method: 'get'
    })
  },
  findDepartment(hoscode) {
    return request({
      url: `${api_name}/department/${hoscode}`,
      method: 'get'
    })
  },
  getBookingScheduleRule(page, limit, hoscode, depcode) {
      return request({
          url: `${api_name}/auth/getBookingScheduleRule/${page}/${limit}/${hoscode}/${depcode}`,
          method: 'get'
      })
  },

  findScheduleList(hoscode, depcode, workDate) {
      return request({
          url: `${api_name}/auth/findScheduleList/${hoscode}/${depcode}/${workDate}`,
          method: 'get'
      })
  },
  /* 预约确认接口*/
  getSchedule(id) {
  return request({
    url: `${api_name}/getSchedule/${id}`,
    method: 'get'
  })
  },


}
